#include"AVL.h"

void text1()
{
	AvlTree<int, int> t;
	//int arr[] = { 16, 3, 7};
	//int arr[] = { 16, 3, 7, 11, 9};
	//int arr[] = { 16, 3, 7, 11, 9, 26};
	//int arr[] = { 16, 3, 7, 11, 9, 26, 18};
	//int arr[] = { 16, 3, 7, 11, 9, 26, 18, 14, 15 };
	int arr[] = { 4, 2, 6, 1, 3, 5, 15, 7, 16, 14 };
	for (auto e : arr){
		t.Inerst(make_pair(e, e));
	}
	t.A();
	cout << t.B() << endl;

	t[3] *= 2;
	t[4] *= 2;

	t.A();
	//cout << "111" << endl;
}

int main()
{
	text1();
	//cout << "2222" << endl;
	return 0;
}